<template>
    <el-main>
     <div style="line-height: 40px;background:#CAE1FF">
        <h1 style="font-size:25px;color:#4FC1B0;"><i class="el-icon-user">系统日志</i></h1>
     </div>

    <el-table border :header-cell-style="{background:'#F5F7FA',color:'#606266'}" :data="tableData" style="width: 100%">
      <el-table-column prop="port" label="端口号" width="100px"></el-table-column>
      <el-table-column prop="method" label="请求方式"></el-table-column>
      <el-table-column prop="ip" label="ip"></el-table-column>
      <el-table-column prop="desc" label="描述"></el-table-column>
      <el-table-column prop="url" label="路径"></el-table-column>
      <el-table-column
      label="操作">
        <el-button  type="text" size="small">删除</el-button>
    </el-table-column>
    </el-table>
    </el-main>
</template>
<script>
export default {
     data(){
        return{
            tableData: [],
            dialogTableVisible:false
        }
    },

    methods:{

        getUserList(){
            var $this = this;
            $this.axios({
                method:'get',
                url: "http://localhost:9999/mongodb/log/list",
            }).then(res=>{
                $this.tableData=res.data.obj;
            })
        },

    },

    mounted(){
        this.getUserList();
    }
}
</script>
<style scoped>

</style>
